package com.xialinrui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xialinrui.entity.Desire;
import com.xialinrui.mapper.DesireMapper;
import com.xialinrui.service.DesireService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author xialinrui
 */
@Service
public class DesireServiceImpl extends ServiceImpl<DesireMapper, Desire> implements DesireService {
    @Resource
    private DesireMapper desireMapper;

    @Override
    public void addDesire(Desire desire) {
        desireMapper.insert(desire);
    }

    @Override
    public void deleteByIds(List<Long> ids) {
        desireMapper.deleteBatchIds(ids);
    }


}
